<?php
/**
 * The config file of ZenTaoPMS.
 *
 * Don't modify this file directly, copy the item to my.php and change it.
 *
 * @copyright   Copyright 2009-2010 QingDao Nature Easy Soft Network Technology Co,LTD (www.cnezsoft.com)
 * @license     LGPL (http://www.gnu.org/licenses/lgpl.html)
 * @author      Chunsheng Wang <chunsheng@cnezsoft.com>
 * @package     config
 * @version     $Id: config.php 1695 2011-04-22 02:42:23Z wwccss $
 * @link        http://www.zentao.net
 */
/* Basic settings. */
$config->version     = '2.0';             // The version of zentaopms. Don't change it.
$config->encoding    = 'UTF-8';           // The encoding of znetaopms.
$config->cookieLife  = time() + 2592000;  // The cookie life time.
$config->timezone    = 'Asia/Shanghai';   // The time zone setting, for more see http://www.php.net/manual/en/timezones.php
$config->webRoot     = '/';                // The root path of the pms.

/* The request settings. */
$config->requestType = 'PATH_INFO';       // The request type: PATH_INFO|GET, if PATH_INFO, must use url rewrite.
$config->pathType    = 'clean';           // If the request type is PATH_INFO, the path type.
$config->requestFix  = '-';               // The divider in the url when PATH_INFO.
$config->moduleVar   = 'm';               // requestType=GET: the module var name.
$config->methodVar   = 'f';               // requestType=GET: the method var name.
$config->viewVar     = 't';               // requestType=GET: the view var name.
$config->sessionVar  = 'sid';             // requestType=GET: the session var name.

/* Views and themes. */
$config->views  = ',html,json,';          // Supported view formats.
$config->themes = 'default,green,red';    // Supported themes.

/* Supported languages. */
$config->langs['zh-cn'] = '中文简体';
$config->langs['zh-tw'] = '中文繁體';
$config->langs['en']    = 'English';

/* Default settings. */
$config->default->view   = 'html';        // Default view.
$config->default->lang   = 'en';          // Default language.
$config->default->theme  = 'default';     // Default theme.
$config->default->module = 'index';       // Default module.
$config->default->method = 'index';       // Default method.

/* Upload settings. */
$config->file->dangers = 'php,jsp,py,rb,asp,'; // Dangerous files.
$config->file->maxSize = 1024 * 1024;          // Max size.

/* Database settings. */
$config->db->persistant = false;           // Pconnect or not.
$config->db->driver     = 'mysql';         // Must be MySQL. Don't support other database server yet.
$config->db->encoding   = 'UTF8';          // Encoding of database.
$config->db->strictMode = false;           // Turn off the strict mode of MySQL.
$config->db->checkCentOS= true;            // Whether check is centos or not, thus to fix the error of pdo in centos.

/* Include the custom config file. */
$myConfig = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'my.php';
if(file_exists($myConfig)) include $myConfig;
if(!isset($config->db->prefix)) $config->db->prefix = 'zt_';

/* Define the tables. */
define('TABLE_COMPANY',        $config->db->prefix . 'company');
define('TABLE_DEPT',           $config->db->prefix . 'dept');
define('TABLE_CONFIG',         $config->db->prefix . 'config');
define('TABLE_USER',           $config->db->prefix . 'user');
define('TABLE_TODO',           $config->db->prefix . 'todo');
define('TABLE_GROUP',          $config->db->prefix . 'group');
define('TABLE_GROUPPRIV',      $config->db->prefix . 'groupPriv');
define('TABLE_USERGROUP',      $config->db->prefix . 'userGroup');
define('TABLE_USERQUERY',      $config->db->prefix . 'userQuery');

define('TABLE_BUG',            $config->db->prefix . 'bug');
define('TABLE_CASE',           $config->db->prefix . 'case');
define('TABLE_CASESTEP',       $config->db->prefix . 'caseStep');
define('TABLE_TESTTASK',       $config->db->prefix . 'testTask');
define('TABLE_TESTRUN',        $config->db->prefix . 'testRun');
define('TABLE_TESTRESULT',     $config->db->prefix . 'testResult');
define('TABLE_USERTPL',        $config->db->prefix . 'userTPL');

define('TABLE_PRODUCT',        $config->db->prefix . 'product');
define('TABLE_STORY',          $config->db->prefix . 'story');
define('TABLE_STORYSPEC',      $config->db->prefix . 'storySpec');
define('TABLE_PRODUCTPLAN',    $config->db->prefix . 'productPlan');
define('TABLE_RELEASE',        $config->db->prefix . 'release');

define('TABLE_PROJECT',        $config->db->prefix . 'project');
define('TABLE_TASK',           $config->db->prefix . 'task');
define('TABLE_TEAM',           $config->db->prefix . 'team');
define('TABLE_PROJECTPRODUCT', $config->db->prefix . 'projectProduct');
define('TABLE_PROJECTSTORY',   $config->db->prefix . 'projectStory');
define('TABLE_TASKESTIMATE',   $config->db->prefix . 'taskEstimate');
define('TABLE_EFFORT',         $config->db->prefix . 'effort');
define('TABLE_BURN',           $config->db->prefix . 'burn');
define('TABLE_BUILD',          $config->db->prefix . 'build');

define('TABLE_DOCLIB',         $config->db->prefix . 'docLib');
define('TABLE_DOC',            $config->db->prefix . 'doc');

define('TABLE_MODULE',         $config->db->prefix . 'module');
define('TABLE_ACTION',         $config->db->prefix . 'action');
define('TABLE_FILE',           $config->db->prefix . 'file');
define('TABLE_HISTORY',        $config->db->prefix . 'history');
define('TABLE_EXTENSION',      $config->db->prefix . 'extension');
